import { IFeidaoAiBrowserComponent } from '@feidao/web/interfaces';

export default async function a003(fd: IFeidaoAiBrowserComponent, ...args: any[]) {
	//  排序
	const id = args[0].currentTarget.dataset.feidaoId;
	const v = args[0].currentTarget.dataset.feidaoV;

	const condition = fd.data.condition;

	//渲染条件
	let order = condition.order;
	if (Object.keys(order).length > 0) {
		condition.order = {};
	}
	condition.order[id] = parseInt(v);
	await fd.data.refresh_filter_data(fd);
	await fd.data.refresh_data(fd);
}
